package com.ls.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
import lombok.ToString;

/**
 * 
 * @TableName ms_comment
 */
@TableName(value ="ms_comment")
@Data
@ToString
public class Comment implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 评论日期
     */
    private Long createDate;
    /**
     * 评论的文章id
     */
    private Long articleId;

    /**
     * 评论的作者id
     */
    private Long authorId;

    /**
     * 父评论id，实现多级评论
     */
    private Long parentId;
    /**
     * 子评论才有，对谁评论
     */
    private Long toUid;

    /**
     *  评论的级别
     */
    private Integer level;

    /**
     * 评论数量
     */
    private Integer likeCount;
    }